/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package polybook.view;

import java.awt.FlowLayout;
import javax.swing.JPanel;

/**
 *
 * @author epulapp
 */
public abstract class NamedJPanel extends JPanel {
    public abstract String getTitle();
    
    public void includeIn(JPanel panel) {
        panel.setLayout(new FlowLayout());
        panel.removeAll();
        panel.add(this);
        panel.revalidate();
    }
}
